<?php

// define array
$meats = array (
  0 => 'fish',
  1 => 'chicken',
  2 => 'ham',
  3 => 'lamb',
);

// change 'ham' to 'turkey'
$meats[2] = 'turkey';

var_export($meats);
